<?php
namespace Admin\Model;
use Think\Model;
class BackupsModel extends Model{
//$file->validate(['size'=>200000000,'ext'=>'sql,gz'])
    protected $_validate = array(
        array('size','200000000','大小不正确！'),
        array('ext',array('sql','gz'),'格式不正确',2,'in'),
    );
}
